<%@page import="com.yst.suivi.SuiviRessources" %>
<script>
function checkifempty() {
        if (document.login.j_username.value=='' ||
            document.login.j_password.value=='') {
           document.login.ok.disabled = true
        } else {
           document.login.ok.disabled = false
        }
      }
</script>



  <HTML>
  <HEAD>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <TITLE><%=SuiviRessources.getString("Suivi.Web.Client") %></TITLE>
  </HEAD>
  <BODY onload='checkifempty()'>
	
    <table height="100%" width="100%" >
	
      <tr>
       <td width="100%" height="100%">
        <CENTER>
            <DIV>
				<% if (null != request.getParameter("failed"))
	{
	%>
	<%=SuiviRessources.getString("Wrong.login") %>
	<%
	}
	%>
                <BR>
                <form name="login" method='POST' action='j_security_check'>

                    <TABLE width='400' cellspacing='10px'>
                        <TBODY>
                            <TR>
                                <TD vAlign='top' colSpan='2' height='50'>
                                </TD>
                            </TR>
                            <TR>
                                <TD class='clsTextItem'>
                                  <%=SuiviRessources.getString("Login") %>
           	                    </TD>
                                <TD width='200px'>
                                    <INPUT id='user' class="clsValueItem" size='35' name='j_username' onkeyup='checkifempty()'>
                                </TD>
                            </TR>
                            <TR>
                                <TD class='clsTextItem'>
                                 <%=SuiviRessources.getString("Pwd") %>
                                </TD>
                                <TD width='200px'>
                                    <INPUT class="clsValueItem" type='password' size='35' name='j_password' onkeyup='checkifempty()'>
                                </TD>
                            </TR>

                        </TBODY>
                    </TABLE>
                    <BR>

                    <DIV align='center'>
                        <INPUT name ='ok' disabled class='clsStdButton'  type='submit' value='<%=SuiviRessources.getString("Ok") %>'>
                        &nbsp;&nbsp;
                        <INPUT class='clsStdButton' type='reset' value='<%=SuiviRessources.getString("Reset") %>'>
                    </DIV>

                </FORM>
                <BR>
            </DIV>
                <TABLE border="0" width="500px" align="center">
                 <TR>
                   <TD align="left" style="font-family : sans-serif; font-size: 11px; color: #316DB5">
                       <%=SuiviRessources.getString("Suivi.Web.Client") %>
                   </TD>
                   <TD align="right" style="font-family : sans-serif; font-size: 11px; color: #316DB5">
                   	&#169; 2006 YST
                   </TD>
                  </TR>
                </TABLE>
        </CENTER>
       </td>
      </tr>
    </table>
  </BODY>
</HTML>